package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.TopicTypeDao;
import com.zsoft.domain.TopicTypeDomain;
import com.zsoft.service.TopicTypeService;

@Service
public class TopicTypeServiceImpl implements TopicTypeService {
	@Autowired
	private TopicTypeDao typeDao;

	@Override
	public void add(TopicTypeDomain user) {
		typeDao.add(user);
	}

	@Override
	public void update(TopicTypeDomain t) {
		typeDao.update(t);
	}

	@Override
	public void saveOrUpdate(TopicTypeDomain t) {
		
	}

	@Override
	public List<TopicTypeDomain> findList(TopicTypeDomain t) {
		List<TopicTypeDomain> retList = typeDao.getList(t);
		return retList;
	}

	@Override
	public TopicTypeDomain getById(Long id) {
		TopicTypeDomain domain = typeDao.getById(id);
		return domain;
	}

	@Override
	public void deleteById(Long id) {
		typeDao.deleteById(id);
	}

	@Override
	public void deleteByExample(TopicTypeDomain t) {
		typeDao.delete(t);
	}

}
